package atguigu.cglib.cglibMethod;

public class TestCglib {
	public static void main(String[] args) {
		ProductProxy tc = new ProductProxy(new ProductImpl()); //
		IProduct pr = tc.getProductProxy(); // 
		Float saleProduct = pr.saleProduct(1000f); //
		System.out.println(saleProduct);
		
//		ProductProxy tc2 = new ProductProxy(new ProductInpl2());
//		IProduct pr2 = tc2.getProductProxy();
//		Float saleProduct2 = pr2.saleProduct(1000f);
//		System.out.println(saleProduct2);
		
		ProductProxy2 tc2 = new ProductProxy2(new ProductInpl2());
		IProduct pr2 = tc2.getProductProxy();
		Float saleProduct2 = pr2.saleProduct(1000f);
		System.out.println(saleProduct2);
	}
}
